---
page_title: "cloudflare_teams_location Resource - Cloudflare"
subcategory: ""
description: |-
  Provides a Cloudflare Teams Location resource. Teams Locations are
  referenced when creating secure web gateway policies.
---

# cloudflare_teams_location (Resource)

Provides a Cloudflare Teams Location resource. Teams Locations are
referenced when creating secure web gateway policies.

## Example Usage

```terraform
resource "cloudflare_teams_location" "example" {
  account_id     = "f037e56e89293a057740de681ac9abbe"
  name           = "office"
  client_default = true

  networks {
    network = "203.0.113.1/32"
  }

  networks {
    network = "203.0.113.2/32"
  }
}
```
<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `account_id` (String) The account identifier to target for the resource.
- `name` (String) Name of the teams location.

### Optional

- `client_default` (Boolean) Indicator that this is the default location.
- `networks` (Block Set) The networks CIDRs that comprise the location. (see [below for nested schema](#nestedblock--networks))

### Read-Only

- `anonymized_logs_enabled` (Boolean) Indicator that anonymized logs are enabled.
- `doh_subdomain` (String) The FQDN that DoH clients should be pointed at.
- `id` (String) The ID of this resource.
- `ip` (String) Client IP address.
- `ipv4_destination` (String) IP to direct all IPv4 DNS queries to.
- `policy_ids` (List of String)

<a id="nestedblock--networks"></a>
### Nested Schema for `networks`

Required:

- `network` (String) CIDR notation representation of the network IP.

Read-Only:

- `id` (String) The ID of this resource.

## Import

Import is supported using the following syntax:

```shell
$ terraform import cloudflare_teams_location.example <account_id>/<teams_location_id>
```
